<template>
	<view class="item">
		<view class="left">
			<image :src="itemObj.imgSrc" style='width: 210rpx; height: 140rpx'></image>
		</view>
		<view class="right">
			<view class="title">{{itemObj.title}}</view>
			<view class="right-type">{{itemObj.type}}</view>
			<view class="status">
				<text v-if="itemObj.status == 0" style="color: #727273;">已结束</text>
				<text v-if="itemObj.status == 1" style="color: #e7ccac;">进行中</text>
				<text v-if="itemObj.status == 2" style="color: #75baa8;">未开始</text>
			</view>
			<view class="time">{{itemObj.time}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			itemObj: {
				type: Object,
				default: {}
			},
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style>
	view,
	text {
		margin: 0;
		padding: 0;
	}

	.item {
		background-color: #f5f5f7;
		width: 100%;
		height: 180rpx;
		border-radius: 10rpx;
		margin-top: 20rpx;
		display: flex;
		align-items: center;
		padding: 10rpx 20rpx;
		box-sizing: border-box;
	}

	.right {
		width: 100%;
		height: 140rpx;
		margin-left: 30rpx;
		font-size: 24rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: baseline;
	}

	.title {
		font-weight: bold;
	}

	.right-type {
		color: #c68d7a;
	}
</style>
